package br.ufpe.cin.rdfilter.test;

import java.net.MalformedURLException;
import java.util.ArrayList;

import br.ufpe.cin.rdfilter.main.DatasetsExtractor;

public class DatasetsExtractorTest2 {

	public static void main(String[] args) {

		// initializing the componenent that will obtain a list of SPARQL
		// endpoints of crawled datasets
		DatasetsExtractor datasetsExtractor = new DatasetsExtractor();

		try {

			// obtaining the SPARQL endpoints URI of the datasets found out by
			// the Crawler
			ArrayList<String> datasetEndpointList = datasetsExtractor
					.getDatasetEndpointList();

			// printing the list
			System.out
					.println("\nAvaliable endpoints of datasets retrieved by the Crawler:");

			for (String datasetEndpoint : datasetEndpointList) {
				System.out.println(datasetEndpoint);
			}

		} catch (MalformedURLException e) {
			e.printStackTrace();
		}

	}

}
